package com.kins.so.chatassistant.model;

import org.apache.commons.collections.MapUtils;

import java.util.Map;

/**
 * @Description:
 * @Author: 申科
 * @Date:2025/11/26 11:45
 */

public class RetrievalChunksVo {
    private String id;
    private String docId;
    private String libraryId;
    private String content;
    private String similarity;
    private String vectorSimilarity;
    private String highlight;
    private String docName;
    private String updateDate;
    private String typeCode;
    
    public void parseJson(Map<String,Object> map){
        this.id = MapUtils.getString(map,"id");
        this.docId = MapUtils.getString(map,"document_id");
        this.libraryId = MapUtils.getString(map,"kb_id");
        this.content = MapUtils.getString(map,"content");
        this.similarity = MapUtils.getString(map,"similarity");
        this.vectorSimilarity = MapUtils.getString(map,"vector_similarity");
        this.highlight = MapUtils.getString(map,"highlight");
        this.docName = MapUtils.getString(map,"document_keyword");
}
}
